package com.gkj.blog.business.vo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.gkj.blog.framework.object.BaseEntityVo;
import com.gkj.blog.persistence.po.Article;
import com.gkj.blog.persistence.po.Tags;
import com.gkj.blog.persistence.po.Type;

import java.util.Date;
import java.util.List;

public class ArticleVo  extends BaseEntityVo {
    private Article article;

    public ArticleVo() {
        article=new Article();
        setAbstractDO(article);
    }

    public ArticleVo(Article article) {
        this.article = article;
        setAbstractDO(article);
    }

    public void setArticle(Article article) {
        this.article = article;
    }

    public List<Tags> getTags() {
        return article.getTags();
    }

    public void setTags(List<Tags> tags) {
        article.setTags(tags);
    }

    public Type getType() {
        return article.getType();
    }

    public void setType(Type type) {
        article.setType(type);
    }

    public Integer getLookCount() {
        return article.getLookCount();
    }

    public void setLookCount(Integer lookCount) {
        article.setLookCount(lookCount);
    }

    public Integer getCommentCount() {
        return article.getCommentCount();
    }

    public void setCommentCount(Integer commentCount) {
        article.setCommentCount(commentCount);
    }

    public Integer getLoveCount() {
        return article.getLoveCount();
    }

    public void setLoveCount(Integer loveCount) {
        article.setLoveCount(loveCount);
    }

    public String getTitle() {
        return article.getTitle();
    }

    public void setTitle(String title) {
        article.setTitle(title);
    }

    public Long getUserId() {
        return article.getUserId();
    }

    public void setUserId(Long userId) {
        article.setUserId(userId);
    }

    public String getCoverImage() {
        return article.getCoverImage();
    }

    public void setCoverImage(String coverImage) {
        article.setCoverImage(coverImage);
    }

    public Boolean isTop() {
        Boolean val= article.getTop();
        return val==null?false:val;
    }

    public void setTop(Boolean top) {
        article.setTop(top);
    }

    public Long getTypeId() {
        return article.getTypeId();
    }

    public void setTypeId(Long typeId) {
        article.setTypeId(typeId);
    }

    public Integer getStatus() {
        return article.getStatus();
    }

    public void setStatus(Integer status) {
        article.setStatus(status);
    }

    public Boolean isRecommended() {
        Boolean val=article.getRecommended();
        return val==null?false:val;
    }

    public void setRecommended(Boolean recommended) {
        article.setRecommended(recommended);
    }

    public Boolean isOriginal() {
        Boolean val=article.getOriginal();
        return val==null?false:val;
    }

    public void setOriginal(Boolean original) {
        article.setOriginal(original);
    }

    public String getDescription() {
        return article.getDescription();
    }

    public void setDescription(String description) {
        article.setDescription(description);
    }

    public String getKeywords() {
        return article.getKeywords();
    }

    public void setKeywords(String keywords) {
        article.setKeywords(keywords);
    }

    public String getContent() {
        return article.getContent();
    }

    public void setContent(String content) {
        article.setContent(content);
    }

}

